/**
 * 
 */
package com.dlg.commons.util.crypto;

import java.io.InputStream;
import java.io.OutputStream;

import com.dlg.commons.util.crypto.exception.CryptoException;

/**
 * 
 * @author lhh@gongren.com
 * @since 2017年4月20日 下午1:25:24
 * 
 */
public interface CipherService {

	public byte[] decrypt(byte[] encrypted, byte[] decryptionKey) throws CryptoException;

	public void decrypt(InputStream in, OutputStream out, byte[] decryptionKey) throws CryptoException;

	public byte[] encrypt(byte[] raw, byte[] encryptionKey) throws CryptoException;

	public void encrypt(InputStream in, OutputStream out, byte[] encryptionKey) throws CryptoException;

}
